export const PAGE_CODE = 'dcs-parts-partSaleOrderTrack';
import {PAGE_TEN} from '../constants';

export const formatPrintExcelUrl = id => `/parts/print/reportexcel.html?id=${id}&name=PartOrderPi&title=${encodeURI('备件PI')}`;
export const formatPrintPdfUrl = id => `/parts/print/reportpdf.html?id=${id}&name=PartOrderPi&title=${encodeURI('备件PI')}`;

export const PERMISSION = {
    printExcel: 'printExcel',
    printPdf: 'printPdf',
    export: 'export',
    detailExport: 'exportDetail',
};
export const DEFAULT_QUERY_OPTION = {
    dealerId: '',
    brandId: '',
    code: [],
    partCode: '',
    partOrderTypeId: '',
    status: [],
    shipmentType: undefined,
    paymentType: undefined,
    priceTerms: undefined,
    submitTime: [],
    createTime: [],
    pageIndex: PAGE_TEN.index,
    pageSize: PAGE_TEN.size,
};
